import { $Http } from '@/config/service/http';

export enum Api {
  // 档案打印
  inventoryExceptionList = '/dms/archivesFileInventory/archivesFileInventoryExceptionFileList', // 盘点异常文件清单列表
  inventoryList = '/dms/archivesFileInventory/archivesFileInventoryFileList', // 盘点文件清单列表
  inventoryFileList = '/dms/archivesFileInventory/archivesFileInventoryNormalFileList', // 详细盘点结果
  inventoryResult = '/dms/archivesFileInventory/archivesFileInventoryResult', // 盘点结果列表
  inventoryAudit = '/dms/archivesFileInventory/audit', // 审核
  inventoryAutoProduct = '/dms/archivesFileInventory/autoProductFormInfo', // 自动生成表单
  inventoryClose = '/dms/archivesFileInventory/closeFlow', // 关闭流程
  inventoryConfirm = '/dms/archivesFileInventory/confirm', // 盘点确认
  inventoryDelete = '/dms/archivesFileInventory/delete', // 删除
  inventoryExportErrorList = '/dms/archivesFileInventory/exportExceptionInventoryFileList', // 导出异常盘点清单
  inventoryExportList = '/dms/archivesFileInventory/exportFileInventoryFileList', // 导出盘点清单
  inventoryExportNormalList = '/dms/archivesFileInventory/exportNormalInventoryFileList', // 导出正常盘点清单
  inventoryGet = '/dms/archivesFileInventory/get', // 详情
  inventoryGetTaskList = '/dms/archivesFileInventory/getTaskList', // 获取盘点任务列表
  inventoryException = '/dms/archivesFileInventory/handleException', // 异常处理
  inventoryImport = '/dms/archivesFileInventory/importArchivesFileInventoryResult', // 导入
  inventoryPage = '/dms/archivesFileInventory/page', // 分页查询
  inventoryPreviewFileList = '/dms/archivesFileInventory/previewFileList', // 预览档案信息
  inventoryRevoke = '/dms/archivesFileInventory/revoke', // 撤回
  inventorySave = '/dms/archivesFileInventory/save', // 保存
  inventoryUpdate = '/dms/archivesFileInventory/updateArchivesFileList', // 更新档案信息
  subjectListSimple = '/system/subject/listSimple' // 用户列表-简单
}

export const inventoryExceptionList = (params) => {
  return $Http.api(Api.inventoryExceptionList, params, 'post');
};

export const inventoryList = (params) => {
  return $Http.api(Api.inventoryList, params, 'post');
};

export const inventoryFileList = (params) => {
  return $Http.api(Api.inventoryFileList, params, 'post');
};

export const inventoryResult = (params) => {
  return $Http.api(Api.inventoryResult, params, 'post');
};

export const inventoryAudit = (params) => {
  return $Http.api(Api.inventoryAudit, params, 'post');
};

export const inventoryAutoProduct = (params) => {
  return $Http.api(Api.inventoryAutoProduct, params, 'post');
};

export const inventoryConfirm = (params) => {
  return $Http.api(Api.inventoryConfirm, params, 'post');
};

export const inventoryGet = (id) => {
  return $Http.api(Api.inventoryGet + '/' + id, null, 'get');
};

export const inventoryGetTaskList = (params) => {
  return $Http.api(Api.inventoryGetTaskList, params, 'get');
};

export const inventoryException = (params) => {
  return $Http.api(Api.inventoryException, params, 'post');
};

export const inventoryPreviewFileList = (id) => {
  return $Http.api(Api.inventoryPreviewFileList + '/' + id, null, 'post');
};

export const inventorySave = (params) => {
  return $Http.api(Api.inventorySave, params, 'post');
};

export const inventoryUpdate = (params) => {
  return $Http.api(Api.inventoryUpdate, params, 'post');
};

export const subjectListSimple = (params) => {
  return $Http.api(Api.subjectListSimple, params, 'post');
};
